package com.dm0858.bianmin.app;

import com.dm0858.bianmin.BuildConfig;
import com.dm0858.bianmin.app.base.BaseApp;
import com.dm0858.bianmin.mine.network.NetworkManager;
import com.dm0858.bianmin.mine.tools.LogUtils;
import com.socks.library.KLog;

import org.litepal.LitePalApplication;

/**
 * @author ChayChan
 * @description: Application类
 * @date 2017/6/10  15:44
 */

public class MyApp extends BaseApp {

    public static String userid = "";

    public static String phone = "";
    //openid
    public static String openid = "";
    //登录方式
    public static int launchMode = -1;

    @Override
    public void onCreate() {
        super.onCreate();

        //**************************************相关第三方SDK的初始化等操作*************************************************
        KLog.init(BuildConfig.DEBUG);//初始化KLog
        LitePalApplication.initialize(getApplicationContext());//初始化litePal

        //**************************************网络初始化*************************************************
        NetworkManager.getInstance().init(ApiConstant.BASE_SERVER_URL);
        LogUtils.getConfig().setLogSwitch(true);
    }
}
